package com.qqtech.qquan.user.service;

import com.qqtech.core.common.exception.BizzException;
import com.qqtech.core.frame.service.BaseService;
import com.qqtech.qquan.user.model.UserFriendApply;

public interface UserFriendApplyService extends BaseService<UserFriendApply> {
	/**
	 * 添加好友申请
	 * @param userFriendApplay
	 * @return
	 */
	public int addFriendApplay(UserFriendApply userFriendApplay) throws BizzException;
	
	/**
	 * 是否存在好友申请
	 * @param userId
	 * @param friendId
	 * @return
	 */
	public boolean isFriendApplyExist(Integer userId, Integer friendId);
	
	/**
	 * 接受好友申请
	 * @param userFriendApplay
	 * @return
	 * @throws BizzException
	 */
	public int accept(UserFriendApply userFriendApplay) throws BizzException;
	
	/**
	 * 忽略好友申请
	 * @param userFriendApplay
	 * @return
	 * @throws BizzException
	 */
	public int ignore(UserFriendApply userFriendApplay) throws BizzException;
	
	/**
	 * 拒绝好友申请
	 * @param userFriendApplay
	 * @return
	 * @throws BizzException
	 */
	public int reject(UserFriendApply userFriendApplay) throws BizzException;

	/**
	 * 删除好友申请
	 * @param userFriendApplay
	 * @return
	 * @throws BizzException
	 */
	public int remove(UserFriendApply userFriendApplay) throws BizzException;
}